<div class="archives-widget">
    <ul class="archives-list">
        {% for archive in archives_list %}
        <li class="py-1">
            <a href="{% url 'blog:archives' archive.year archive.month %}" 
               class="has-text-dark">
                {{ archive|date:"Y年m月" }}
                <span class="tag is-primary is-pulled-right">
                    {{ archive.post_count }}
                </span>
            </a>
        </li>
        {% endfor %}
    </ul>
</div>